'use strict';
// 关联数据库
const db = uniCloud.database();
exports.main = async (event, context) => {
	// 关联数据库的数据表
	const userData = db.collection("users");
	// 往数据表里批量新增数据
	let res = await userData.add([
		{
			name: "李四",
			gender: "男"
		},
		{
			name: "小兰",
			gender: "女"
		}
	]);
	
	return res;
};